import request from '@/utils/request'

// 查询门牌列表
export function listHardware(query) {
  return request({
    url: '/xst/hardware/list',
    method: 'get',
    params: query
  })
}

// 查询门牌详细
export function getHardware(id) {
  return request({
    url: '/xst/hardware/' + id,
    method: 'get'
  })
}

// 新增门牌
export function addHardware(data) {
  return request({
    url: '/xst/hardware',
    method: 'post',
    data: data
  })
}

// 修改门牌
export function updateHardware(data) {
  return request({
    url: '/xst/hardware',
    method: 'put',
    data: data
  })
}

// 删除门牌
export function delHardware(id) {
  return request({
    url: '/xst/hardware/' + id,
    method: 'delete'
  })
}
